﻿using System.Web.Mvc;

namespace HynuIOTA.Web.Areas.Blogs
{
    public class BlogsAreaRegistration : AreaRegistration
    {
        public override string AreaName => "Blogs";

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
               name: "Blogs_default",
               url: "Blogs/{controller}/{action}/{id}",
               defaults: new { controller = "Blog", action = "Index", id = UrlParameter.Optional },
               namespaces: new string[] { "HynuIOTA.Web.Areas.Blogs.Controllers" }
            ).DataTokens["UseNamespaceFallback"] = false;
        }
    }
}